package com.dingding.gmall.ware.feign;


import com.dingding.gmall.ware.dto.OrderEntityDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gmall-order")
public interface OrderFeignService {

    @GetMapping(value = "/order/order/status/{orderSn}", consumes = MediaType.APPLICATION_JSON_VALUE)
    OrderEntityDTO getOrderStatus(@PathVariable("orderSn") String orderSn);
}
